/*
 * @Author: fanzejie
 * @Description: 请填写简介
 */
/*
 * @Author: fanzejie
 * @Description: 请填写简介
 */
import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
	{
		path: "/",
		name: "Home",
		component: Home,
	},
	{
		path: "/about",
		name: "About",
		// route level code-splitting
		// this generates a separate chunk (about.[hash].js) for this route
		// which is lazy-loaded when the route is visited.
		component: () => import(/* webpackChunkName: "about" */ "../views/About.vue"),
	},
	{
		path: "/bar",
		name: "Bar",
		component: () => import(/* webpackChunkName: "about" */ "../views/Bar.vue"),
	},
	{
		path: "/lineChart",
		name: "LineChart",
		component: () => import(/* webpackChunkName: "about" */ "../views/LineChart.vue"),
	},
	{
		path: "/runTable",
		name: "RunTable",
		component: () => import(/* webpackChunkName: "about" */ "../views/RunTable.vue"),
	},
	{
		path: "/test",
		name: "Test",
		component: () => import(/* webpackChunkName: "about" */ "../views/Test.vue"),
	},
	{
		path: "/tipTable1",
		name: "tiptable1",
		component: () => import(/* webpackChunkName: "about" */ "../views/tip/Table.vue"),
	},
	{
		path: "/tipTable2",
		name: "tiptable2",
		component: () => import(/* webpackChunkName: "about" */ "../views/tip/Table2.vue"),
	},
	{
		path: "/checkbox",
		name: "checkbox",
		component: () => import(/* webpackChunkName: "about" */ "../views/Checkbox.vue"),
	},
];

const router = new VueRouter({
	mode: "history",
	base: process.env.BASE_URL,
	routes,
});

export default router;
